﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Acoris.Note.Core
{
    using Acoris.Content;
    using Acoris.Document;

    /// <summary>
    /// 资源工厂
    /// </summary>
    sealed class ResourceFactory
    {
        /// <summary>
        /// create image resource
        /// </summary>
        /// <param name="fileName"></param>
        /// <returns></returns>
        public static AcorisMarkdownResource CreateImageResource(string fileName)
        {
            return new AcorisMarkdownResource(ResourceType.Image)
            {
                Value = fileName,

            };
        }

        public static AcorisMarkdownResource CreateAudioResource(string fileName)
        {
            return new AcorisMarkdownResource(ResourceType.Audio)
            {
                Value = fileName
            };

        }
    }
}
